import request from '@/utils/request'

//查询大列表
export function getAssignList(assignInfo) {
  return request({
    url: '/reportAssign/getList',
    method: 'post',
    data: assignInfo
  })
}

//分配报告
export function assignReportByPid(pidList, docList) {
  return request({
    url: '/reportAssign/assign',
    method: 'post',
    data: {
      pidList,
      docList,
    }
  })
}

//叫号
export function call(infoId) {
  return request({
    url: '/reportAssign/call?infoId=' + infoId,
    method: 'get',
  })
}

//确认拍片
export function addPacsMsg(pids) {
  return request({
    url: '/pat/addPacsMsg?infoids='+pids,
    method: 'get',
  })
}


//查询仪器类型
export function getEqpType() {
  return request({
    url: '/base/getDeptEqpEqptypeByActor',
    method: 'get',
  })
}
//查询session
export function getSessionMsg() {
  return request({
    url: '/user/getSessionMsg',
    method: 'get',
  })
}

//查询仪器
export function getEqp(typeCode) {
  return request({
    url: '/BaseEquip/getEqpByTypeCode?typeCode=' + typeCode,
    method: 'get',
  })
}

//查询部位
export function getPart() {
  return request({
    url: '/basePart/findbasePart',
    method: 'get',
  })
}

// //查询用户
// export function getDoc() {
//   return request({
//     url: '/BaseSysUser/findsysUser',
//     method: 'get',
//   })
// }

//查询pacs用户
export function getPacsUser() {
  return request({
    url: '/BaseSysUser/getPacsUser',
    method: 'get',
  })
}

//撤销审核
export function repeal(infoId) {
  return request({
    url: '/pat/repeal2/' + infoId,
    method: 'get',
  })
}

//获得打印数据
export function getPrintData(pids) {
  return request({
    url: '/print/rptAll?pids=' + pids + "&rptName=检查报告",
    method: 'get',
  })
}




